import { http } from "@/utils/http";
import { baseUrlApi } from "./utils";

type homeResult = {
  page: any;
  result: any
};

/** 评估板列表 */
export const getevaluationeditionlist = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/api/backend/evaluationboard/selpage"), { data });
};


/** 查询评估板详细信息 */
export const getevaluationboardinfo = (id) => {
  return http.request<homeResult>("get", baseUrlApi(`/api/backend/evaluationboard/evaluationboard/${id}`));
};


/** 修改评估板基础信息 */
export const evaluationboardgrclass = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/api/backend/evaluationboard/grclass"), { data });
};

/** 删除评估板分类信息 */
export const evaluationboarddelinfo = (userid?: string | number) => {
  return http.request<homeResult>("delete", baseUrlApi(`/api/backend/evaluationboard/delinfo/${userid}`));
};


/** 新增评估板基础信息 */
export const evaluationboardinserpro = (data?: object) => {
  return http.request<homeResult>("post", baseUrlApi("/api/backend/evaluationboard/inserclass"), { data });
};